<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Online HTML Editor</title>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>

<script type="text/javascript">
$(document).ready(function () {
$('#selek').click(function () {
$('.selectAll').select();
});
});
</script>
<!--
<script type="text/javascript">
$(document).ready(function () {
$('#klir').click(function () {
$('.selectAll').blur(function () {
$(this).value('');
});
});
});
</script>-->

<style type="text/css">
a#selek, a#klir{
   display:inline-block;
   padding:3px 5px;
   background:#aaa;
   border:1px solid #444;
   cursor:pointer;
   margin-right:80px;
 }
</style>

</head>

<body>


<a id="selek" class="selek">Select All</a><a id="klir" class="klir">Cleart All</a><br/>
<textarea class="selectAll" style="padding:10px;background:#eee;width:200px;overflow:auto;border:1px solid ;">ddddddddddddddddddddddddddddddddddddddddddd
ddddddddddddddddddddd
ddddddddddddddddddddd
ddddddddddddddddddddd
</textarea>

</body>
</html>
